import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

<Tabs groupId="install-tool">

<TabItem label="suiup" value="suiup">

First, install `suiup`:

```sh
$ curl -sSfL \
  https://raw.githubusercontent.com/Mystenlabs/suiup/main/install.sh \
  | sh
```

Then, install Sui:

```sh
$ suiup install sui@testnet
```

For alternative installation methods, refer to the [`suiup` repository](https://github.com/MystenLabs/suiup).

:::danger

Installing Sui with `suiup` does not configure the client. To use `sui` commands, you must [configure the Sui client](/guides/developer/getting-started/configure-sui-client.mdx).

To confirm that Sui installed correctly:

1. Open a terminal or console
2. Type `sui --version` and press Enter

If you receive a "command not found" error, verify the Sui binaries directory is in your `PATH` environment variable.

:::

</TabItem>

<TabItem label="Homebrew" value="brew">

You must have [Homebrew](https://brew.sh/) installed before running the following command:

```sh
$ brew install sui
```

To confirm that Sui installed correctly:

1. Open a terminal or console
2. Type `sui --version` and press Enter

If you receive a "command not found" error, verify the Sui binaries directory is in your `PATH` environment variable.


</TabItem>

<TabItem label="Chocolatey" value="choco">

You must have [Chocolately](https://chocolatey.org/) installed before running the following command:

```sh
$ choco install sui
```

Find more [versions of Sui for Windows](https://community.chocolatey.org/packages/sui) on the Chocolatey community website.

To confirm that Sui installed correctly:

1. Open a terminal or console
2. Type `sui --version` and press Enter

If you receive a "command not found" error, verify the Sui binaries directory is in your `PATH` environment variable.

</TabItem>

</Tabs>
